package com.atguigu.cart.service;

import com.atguigu.param.CartSaveParam;
import com.atguigu.pojo.Cart;
import com.atguigu.utils.R;

import java.util.List;

/**
 * ClassName:CartService
 * Package:com.atguigu.cart.service
 * Description:
 *
 * @Author 应永豪
 * @Create 2024/4/22 20:17
 * @Version 1.0
 */
public interface CartService {
    R save(CartSaveParam cartSaveParam);

    R list(Integer userId);

    R update(Cart cart);

    R remove(Cart cart);

    void clearIds(List<Integer> cartIds);
}
